#include "include.h"
#include "func.h"
#include "func_music.h"
#include "func_exspiflash_write.h"

#if (EX_SPIFLASH_WRITE)
AT(.text.func.write.msg)
void func_exspiflash_write_message(u16 msg)
{

    switch (msg) {
		#if 0
        case KU_PREV_VOL_DOWN:
        case KL_VOL_DOWN_PREV:
        case KU_PREV:
            break;

        case KU_NEXT_VOL_UP:
        case KL_VOL_UP_NEXT:
        case KU_NEXT:
            break;

        case KU_PLAY:
        case KU_PLAY_POWER:
        case KU_PLAY_MODE:
			//func_spiflash_erase();
            break;
		case KU_REC:
			break;
		#endif
		case KU_BT:
			func_cb.sta=FUNC_BT;
			//func_spifalsh_read();
			break;
		case KU_SONG:
			func_cb.sta=FUNC_EXSPIFLASH_MUSIC;
			//func_spifalsh_read();
			break;
		case KU_POWER:
			func_cb.sta=FUNC_PWROFF;
			//func_spifalsh_read();
			break;
        default:
            func_message(msg);
            break;
    }
}
#endif //(EX_SPIFLASH_SUPPORT & EXSPI_MUSIC)

